Path Exist
AutomatR.DefaultActivities.FileAndFolder.PathExist
The "Path Exist" activity in AutomatR is designed to check whether a specified file or folder path exists on your local drive. This activity, falling under the File category, provides a simple way to verify the existence of a path within automation workflows.
Properties
Name | Description |
---|---|
Input | |
Path | Specifies the full path of the file or folder that needs to be verified for existence. String variables containing the path. |
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. Enhances clarity and organization within the automation project. String variables containing the desired display name. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Path Exist" activity. Useful for handling synchronization issues. Integer variables containing the delay duration. Example: If the wait time is 1000 milliseconds or 1 sec, i.e., 1. |
Output | |
Exist | Outputs the result (true or false) based on the existence of the specified path. Boolean variables to store the existence status. |
How to use:
- Drag and drop the "Path Exist" activity onto the workflow.
- Configure the properties by specifying the path to be checked for existence.
- Optionally, configure the delay.
- Execute the workflow to determine whether the specified path exists.
Example: Consider an example where the "Path Exist" activity is used to check whether a file named "workbook.csv" exists in the "C:\sample files\" directory:
Path Exist:
Path: "C:\sample files\workbook.csv"
Exist: isPathExist
In this example, the activity checks for the existence of the "workbook.csv" file in the specified path. The result (true or false) is stored in the Boolean variable "isPathExist" for further handling in the workflow.